package com.bw.module_attendance.adapter


import com.bw.module_attendance.R
import com.bw.module_attendance.entity.AttendanceEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
/**
 * 工单-智慧园区-考勤管理
 */
class AttendanceAdapter:BaseQuickAdapter<AttendanceEntity,BaseViewHolder>(R.layout.item_attendance) {
    override fun convert(holder: BaseViewHolder, item: AttendanceEntity) {
        holder.setText(R.id.day,item.morningCheckIn.substring(0,10))
        holder.setText(R.id.time,"上班 "+item.morningCheckIn.substring(11,19)+" - 下班 "+item.afternoonCheckIn.substring(11,19))
        holder.setText(R.id.address,item.location)
    }
}